package cn.kilo.infrastructure.persistent.dao;

import cn.kilo.domain.model.order.entity.StaffEntity;
import cn.kilo.infrastructure.persistent.po.Staff;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author kilok
 */
@Mapper
public interface IStaffDao {
    Staff getStaff(@Param("userId") String userId);

    int insert(@Param("staff") StaffEntity staffEntity);

    void updateStaff();

    void deleteStaff();

    List<Staff> queryStaffList();

    Boolean update(@Param("status") StaffEntity staffEntity);

    Staff getStaffIdByRidgepole(@Param("ridgepole") String ridgepole);

    int queryRidgepoleStaff(@Param("ridgepole") String ridgepole);

    Staff getStaffPhoneNumber(@Param("staffId") String staffId);

    void updateWeather();

    void setWeather(@Param("staffId") String userId,@Param("weather") String weather);

    Staff checkStaff(@Param("staffEntity") StaffEntity staffEntity);

    int replace(@Param("staff") StaffEntity staffEntity);

    void deleteStaffIdById(@Param("staffId") String staffId);


    Staff getIdByName(@Param("staffName") String staffName);
}
